﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace TanmiaGrp.GeneralLedger.WinApp
{
    class MockProgress : IProgress
    {
        private bool isProgress;

        #region IProgress Members

        public bool IsProgress
        {
            get { return isProgress; }
        }

        public void ShowProgress()
        {
            isProgress = true;
        }

        public void ShowProgress(string message)
        {
            isProgress = true;
            Application.Current.MainWindow.Title = message;
        }

        public void HideProgress()
        {
            isProgress = false;
            Application.Current.MainWindow.Title = string.Empty;
        }

        #endregion
    }
}
